export const baseUrl = 'http://localhost:18889/v1/'
export const wsUrl = 'ws://localhost:18889/websocket/topic/'

export const url = {
  uaa: {
    user: {
      list: 'uaa/user/users',
      add: 'uaa/user',
      update: 'uaa/user/',
      delete: 'uaa/user/',
      login: 'uaa/user/login',
      all: 'uaa/user/all',
    },
    priv: {
      list: 'uaa/priv/privs',
      add: 'uaa/priv',
      update: 'uaa/priv/',
      delete: 'uaa/priv/',
      tree: 'uaa/priv/tree/'

    },
    role: {
      list: 'uaa/role/roles',
      add: 'uaa/role',
      update: 'uaa/role/',
      delete: 'uaa/role/',
      all: 'uaa/role/all'
    },
    menu: {
      list: 'uaa/menu/menus',
      add: 'uaa/menu',
      update: 'uaa/menu/',
      delete: 'uaa/menu/',
      tree: 'uaa/menu/tree/' //拼接 menu level
    },

  },
  film: {
    film: {
      list: 'film/film/films',
      one: 'film/film'
    },
    comment: {
      list: 'film/comment/comments',
    },
  },
  media: {
    message: {
      list: 'media/chat/message/messages/',
      add: 'media/chat/message',
    },
    chat: {
      list: 'media/chat/relation/relations',
      add: 'media/chat/relation',
      delete: 'media/chat/relation',
      online: 'media/chat/relation/sendMsg',
    },
    comment: {
      list: 'film/comment/comments',
    },
  },

}
